package com.groupseven.backend.mapper;

import com.groupseven.backend.domain.Assessment.AssessmentItem;
import com.groupseven.backend.domain.Assessment.AssessmentPlan;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AssessmentMapper {
    /**
     * @Author 王志华
     * @return
     */
    List<AssessmentItem> getAllAssessmentItems();

    /**
     * @Author 王志华
     * @return
     */
    List<AssessmentPlan> getAllAssessmentPlans();

    /**
     * @Author 王志华
     * @param item
     * @return
     */
    int addItemForPlanByPlanid(AssessmentItem item);

    /**
     * @Author 王志华
     * @param type
     * @param level
     * @return
     */
    List<AssessmentItem> selectByProjectTypeAndLevelAndBelonging(int type,int level,int Belonging);

    /**
     * @Author 王志华
     * @param id
     * @return
     */
    int deleteAssessmentItemById(int id);

    /**
     * @Author 王志华
     * @param id
     * @return
     */
    int deleteAssessmentPlanById(int id);

    /**
     * @Author 王志华
     * @param item
     * @return
     */
    int updateAssessmentItem(AssessmentItem item);

    /**
     * @Author 王志华
     * @param Planid
     * @return
     */
    List<AssessmentItem> getItemsById(int Planid);
}
